package com.gxz;

import com.gxz.config.SpringConfig;
import com.gxz.pojo.User;
import com.gxz.service.impl.UserServiceImpl;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.List;

public class AppSSM {
    public static void main(String[] args) {
        // 测试连通性
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        UserServiceImpl userService = ctx.getBean(UserServiceImpl.class);
        User user = userService.getById(1);
        System.out.println(user);
    }
}

// TODO: 事务 、模糊搜索分页、Result封装、错误处理、通知
